﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>评论操作</title>
    <link href="~/plugins/layui/css/layui.css" rel="stylesheet" />
</head>
<body style="margin-left:10px;margin-top:10px;">
    @using (Html.BeginForm("plau", "ljsheng", new { gid = Request.QueryString["gid"] }, FormMethod.Post, new { @class = "layui-form layui-form-pane" }))
    {
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">对商家评价</label>
            <div class="layui-input-block">
                <input type="radio" name="shoppj" value="优" title="优" @(ViewBag.shoppj == 1 ? "checked=\"\"" : "")>
                <input type="radio" name="shoppj" value="合格" title="合格" @(ViewBag.shoppj == 2 ? "checked=\"\"" : "")>
                <input type="radio" name="shoppj" value="差" title="差" @(ViewBag.shoppj == 3 ? "checked=\"\"" : "")>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评论内容</label>
            <div class="layui-input-inline">
                <textarea type="text" name="msg" style="height:88px;width:198px;">@ViewBag.msg</textarea>
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">对会员评价</label>
            <div class="layui-input-block">
                <input type="radio" name="userpj" value="优" title="优" @(ViewBag.userpj == 1 ? "checked=\"\"" : "")>
                <input type="radio" name="userpj" value="合格" title="合格" @(ViewBag.userpj == 2 ? "checked=\"\"" : "")>
                <input type="radio" name="userpj" value="差" title="差" @(ViewBag.userpj == 3 ? "checked=\"\"" : "")>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家回复</label>
            <div class="layui-input-inline">
                <textarea type="text" name="tomsg" style="height:88px;width:198px;">@ViewBag.tomsg</textarea>
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">是否显示</label>
            <div class="layui-input-block">
                <input type="radio" name="show" value="显示" title="显示" @(ViewBag.show != 2 ? "checked=\"\"" : "")>
                <input type="radio" name="show" value="不显示" title="不显示" @(ViewBag.show == 2 ? "checked=\"\"" : "")>
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn" lay-submit="">提交</button>
        </div>
    }
    <script src="~/plugins/layui/layui.js"></script>
    <script>
        layui.use(['form'], function () {
            var form = layui.form();
            form.verify({
                account: function (value) {
                    if (value.length < 2) {
                        return '至少得2个字符啊';
                    }
                }
                , num: function (value) {
                    if (value.length < 1) {
                        return '至少得1个字符啊';
                    }
                }
            });
        });
    </script>
</body>
</html>
